<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <title>M&oacute;dulo Administrador</title>
    <meta content="IE=edge,chrome=1" http-equiv="X-UA-Compatible">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="description" content="">
    <meta name="author" content="">

    <script type="text/javascript" src="<?php echo base_url();?>js/jquery-1.7.2.min.js"></script>
    <script type="text/javascript" src="<?php echo base_url();?>js/jquery_ui.js"></script>
    
    <link rel="stylesheet" type="text/css" href="<?php echo base_url();?>js/bootstrap/css/bootstrap.css">
    <link rel="stylesheet" type="text/css" href="<?php echo base_url();?>css/theme.css">
    <link rel="stylesheet" href="<?php echo base_url();?>js/font-awesome/css/font-awesome.css">
    <link rel="stylesheet" type="text/css" href="<?php echo base_url();?>css/jquery_ui.css" />
    
    <!-- Demo page code -->

    <style type="text/css">
        #line-chart {
            height:300px;
            width:800px;
            margin: 0px auto;
            margin-top: 1em;
        }
        .brand { font-family: georgia, serif; }
        .brand .first {
            color: #ccc;
            font-style: italic;
        }
        .brand .second {
            color: #fff;
            font-weight: bold;
        }
    </style>

    <!-- Le HTML5 shim, for IE6-8 support of HTML5 elements -->
    <!--[if lt IE 9]>
      <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
    <![endif]-->

    <!-- Le fav and touch icons
    <link rel="shortcut icon" href="../assets/ico/favicon.ico">
    <link rel="apple-touch-icon-precomposed" sizes="144x144" href="../assets/ico/apple-touch-icon-144-precomposed.png">
    <link rel="apple-touch-icon-precomposed" sizes="114x114" href="../assets/ico/apple-touch-icon-114-precomposed.png">
    <link rel="apple-touch-icon-precomposed" sizes="72x72" href="../assets/ico/apple-touch-icon-72-precomposed.png">
    <link rel="apple-touch-icon-precomposed" href="../assets/ico/apple-touch-icon-57-precomposed.png">
	-->
  </head>

  <!--[if lt IE 7 ]> <body class="ie ie6"> <![endif]-->
  <!--[if IE 7 ]> <body class="ie ie7 "> <![endif]-->
  <!--[if IE 8 ]> <body class="ie ie8 "> <![endif]-->
  <!--[if IE 9 ]> <body class="ie ie9 "> <![endif]-->
  <!--[if (gt IE 9)|!(IE)]><!--> 
  <body class=""> 
  <!--<![endif]-->
    
    <div class="navbar">
        <div class="navbar-inner">
                <ul class="nav pull-right">
				
                    <li id="fat-menu" class="dropdown">
                        <a href="#" role="button" class="dropdown-toggle" data-toggle="dropdown">
                            <i class="icon-user"></i> Susana 
                            <i class="icon-caret-down"></i>
                        </a>

                        <ul class="dropdown-menu">
                            <li><a tabindex="-1" class="visible-phone" href="#">Settings</a></li>
                            <li class="divider visible-phone"></li>
                            <li><a tabindex="-1" href="sign-in.html">Logout</a></li>
                        </ul>
                    </li>
                    
                </ul>
                <a class="brand" href="http://localhost/Modulo_Admin/AdminController"><span class="first">M&oacute;dulo</span> <span class="second">Administrador</span></a>
        </div>
    </div>
    


    
    <div class="sidebar-nav">
        <a href="#pacientes-menu" onclick="window.location = 'http://localhost/Modulo_Admin/AdminController';" class="nav-header" data-toggle="collapse"><i class="icon-dashboard"></i>Pacientes</a>
        <a href="#personal-menu" class="nav-header" data-toggle="collapse"><i class="icon-briefcase"></i>Personal <i class="icon-chevron-up"></i></a>
        <ul id="personal-menu" class="nav nav-list collapse">
            <li><a href="#" onclick="window.location = 'http://localhost/Modulo_Admin/AdminController/page/2';" >Doctores</a></li>
            <li><a href="#" onclick="window.location = 'http://localhost/Modulo_Admin/AdminController/page/4';" >Recepcionistas</a></li>
        </ul>
        <a href="#reportes-menu" onclick="window.location = 'http://localhost/Modulo_Admin/Reportes';" class="nav-header collapsed" data-toggle="collapse"><i class="icon-exclamation-sign"></i>Reportes </a>
        <a href="#configuracion-menu" class="nav-header" data-toggle="collapse"><i class="icon-legal"></i>Configuraciones <i class="icon-chevron-up"></i></a>
        <ul id="configuracion-menu" class="nav nav-list collapse">
                <li ><a href="#" onclick="window.location = '<?php echo base_url(); ?>AdminController/page/6';">Especialidades</a></li>
                <li ><a href="#" onclick="window.location = '<?php echo base_url(); ?>AdminController/page/7';">Parámetros</a></li>
        </ul>
    </div>

    <div class="content">
		<div class="header">
			<h1 class="page-title">Doctores</h1>
		</div>
		
		
		<fieldset class="container-fluid">
			<legend>Médico</legend>
			<form class="form-inline">
					<table width="95%">
						<tr>
							<td>
								<div style="float:right;height:45px;">
									<label for="names">Nombres : </label>
                                                                        <input class="input-xlarge" placeholder="" value="<?php echo $doctorInfo[0]->nombres; ?>" id="appendedInputButton" name="names" type="text">
								</div>
							</td>
							<td>
								<div style="float:right;height:45px;">
									<label for="cmp">CMP : </label>
									<input class="input-xlarge" placeholder="" value="<?php echo $doctorInfo[0]->cmp; ?>" id="appendedInputButton" name="cmp" type="text">
								</div>
							</td>
						</tr>
						<tr>
							<td>
								<div style="float:right;height:45px;">
									<label for="lastName1">Apellido Paterno : </label>
                                                                        <input class="input-xlarge" placeholder="" value="<?php echo $doctorInfo[0]->apellido_paterno; ?>" id="appendedInputButton" name="lastName1" type="text">
								</div>
							</td>
							<td>
								<div style="float:right;height:45px;">
                                                                    <label for="phone">Tel&eacute;fono : </label>
                                                                    <input class="input-xlarge" placeholder="" value="<?php echo $doctorInfo[0]->telefono; ?>" id="appendedInputButton" name="phone" type="text">
								</div>
							</td>
						</tr>
						<tr>
							<td>
                                                                <div style="float:right;height:45px;">
									<label for="lastName2">Apellido Materno : </label>
									<input class="input-xlarge" placeholder="Marquez" value="<?php echo $doctorInfo[0]->apellido_materno; ?>" id="appendedInputButton" name="lastName2" type="text">
                                                                </div>
                                                        </td>
							<td>
								<div style="float:right;">
                                                                        <label for="cellphone">Tel&eacute;fono Celular: </label>
                                                                        <input class="input-xlarge" placeholder="" value="<?php echo $doctorInfo[0]->celular; ?>" id="appendedInputButton" name="cellphone" type="text">	
								</div>
							</td>
						</tr>
                                                <tr>
							<td>
                                                                <div style="float:right;height:45px;">
									<label for="birthdate">Fecha Nacimiento : </label>
                                                                        <input class="input-xlarge" placeholder="" id="birthdate" name="birthdate" type="text" >
                                                                </div>
                                                        </td>
							<td>
								<div style="float:right;">
                                                                    
                                                                    <label for="specialty1">Especialidad 1 :</label>
									<select>
                                                                                <option value="1">Todas</option>
                                                                                <option value="2" selected>Cardiología</option>
                                                                                <option value="3">Cirug&iacute;a</option>
                                                                                <option value="4">Urolog&iacute;a</option>
                                                                        </select>
								</div>
							</td>
						</tr>
                                                <tr>
							<td>
                                                                <div style="float:right;height:45px;">
									<label for="dni">Documento de Identidad : </label>
									<input class="input-xlarge" placeholder="" value="<?php echo $doctorInfo[0]->ID_PERSONA; ?>" id="appendedInputButton" name="dni" type="text">
                                                                </div>
                                                        </td>
							<td>
								<div style="float:right;">
                                                                        <label for="specialty2">Especialidad 2 :</label>
									<select>
                                                                                <option value="1">Todas</option>
                                                                                <option value="2" selected>Cardiología</option>
                                                                                <option value="3">Cirug&iacute;a</option>
                                                                                <option value="4">Urolog&iacute;a</option>
                                                                        </select>
                                                                </div>
							</td>
						</tr>
                                                <tr>
							<td>
                                                                <div style="float:right;height:45px;">
									<label for="email">Correo Electr&oacute;nico : </label>
									<input class="input-xlarge" placeholder="" value="<?php echo $doctorInfo[0]->correo; ?>" id="appendedInputButton" name="email" type="text">
                                                                </div>
                                                        </td>
							<td>
								<div style="float:right;">
                                                                        <label for="specialty3">Especialidad 3 :</label>
									<select>
                                                                                <option value="1">Todas</option>
                                                                                <option value="2" selected>Cardiología</option>
                                                                                <option value="3">Cirug&iacute;a</option>
                                                                                <option value="4">Urolog&iacute;a</option>
                                                                        </select>
                                                                </div>
							</td>
						</tr>
                                                <tr>
							<td>
                                                                <div style="float:right;height:45px;">
									<label for="ruc">RUC : </label>
									<input class="input-xlarge" placeholder="" value="<?php echo $doctorInfo[0]->ruc; ?>" id="appendedInputButton" name="ruc" type="text">
                                                                </div>
                                                        </td>
							<td>
								
							</td>
						</tr>
                                                <tr>
							<td>
                                                                <div style="float:right;height:45px;">
									<label for="gender">G&eacute;nero : </label>
                                                                        <?php if($doctorInfo[0]->genero == "F"){ ?>
                                                                        <input type="radio" name="gender" value="F" checked/> F
                                                                        <?php }else{ ?>
                                                                        <input type="radio" name="gender" value="F"/> F
                                                                        <?php } ?>
                                                                        
                                                                        <?php if($doctorInfo[0]->genero == "M"){ ?>
                                                                        <input type="radio" name="gender" value="M" checked/> M
                                                                        <?php }else{ ?>
                                                                        <input type="radio" name="gender" value="M" /> M
                                                                        <?php } ?>
                                                                        
								</div>
                                                        </td>
							<td>
								<div style="float:right;">
                                                                        <button class="btn" type="button"><i class="icon-save"></i> Guardar</button>
                                                                </div>
							</td>
						</tr>
					</table>
                        </form>
		</fieldset>
        
        
                <fieldset class="container-fluid">
                    
                        <legend>Horario</legend>
		
                            <div class="container-fluid">
                                <div class="row-fluid">
                                    <div class="well">
                                        <table class="table">
                                            <thead>
                                                    <tr>
                                                        <th> Fecha Inicio </th>
                                                        <th> Fecha Final</th>
                                                        <th> Día </th>
                                                        <th> Hora Inicio</th>
                                                        <th> Hora Final</th>
                                                        <th> Consultorio</th>
                                                       <th> Adicionales </th>
                                                        <th> Acciones </th>
                                                    </tr>
                                            </thead>
                                            <tbody>
                                                    <tr>
                                                        <td>01/01/2013</td>
                                                        <td>31/01/2013</td>
                                                        <td>Lunes</td>
                                                        <td>08:00</td>
                                                        <td>12:30</td>
                                                        <td>C - 102</td>
                                                        <td>1</td>
                                                        <td style="text-align: center">
                                                            <a href="#" role="button" data-toggle="modal"><i class="icon-pencil"></i></a>
                                                            <a href="#myModal" role="button" data-toggle="modal"><i class="icon-remove"></i></a>
                                                        </td>
                                                    </tr>
                                                    
                                                    <tr>
                                                        <td>01/02/2013</td>
                                                        <td>28/02/2013</td>
                                                        <td>Martes</td>
                                                        <td>08:00</td>
                                                        <td>12:30</td>
                                                        <td>C - 102</td>
                                                        <td>1</td>
                                                        <td style="text-align: center">
                                                            <a href="#" role="button" data-toggle="modal"><i class="icon-pencil"></i></a>
                                                            <a href="#myModal" role="button" data-toggle="modal"><i class="icon-remove"></i></a>
                                                        </td>
                                                    </tr>
                                                    
                                                    <tr>
                                                        <td>01/03/2013</td>
                                                        <td>31/03/2013</td>
                                                        <td>Jueves</td>
                                                        <td>08:00</td>
                                                        <td>12:30</td>
                                                        <td>C - 102</td>
                                                        <td>1</td>
                                                        <td style="text-align: center">
                                                            <a href="#" role="button" data-toggle="modal"><i class="icon-pencil"></i></a>
                                                            <a href="#myModal" role="button" data-toggle="modal"><i class="icon-remove"></i></a>
                                                        </td>
                                                    </tr>
                                                    
                                                    
                                            </tbody>
                                        </table>
                                        <table class="table">
                                            <tr>
                                                <td>
                                                    <div style="float:right;">
                                                    <a href="#modalAgregarHorario" role="button" data-toggle="modal">
                                                    <button class="btn" type="button"><i class="icon-plus"></i> Agregar Horario</button>
                                                    </a>
                                                    </div>
                                                </td>
                                            </tr>
                                        </table>
                                    </div>
                                    
                                    
                                    <div class="pagination">
                                            <ul>
                                                <li><a href="#">Ant</a></li>
                                                <li><a href="#">1</a></li>
                                                <li><a href="#">2</a></li>
                                                <li><a href="#">3</a></li>
                                                <li><a href="#">4</a></li>
                                                <li><a href="#">Sig</a></li>
                                            </ul>
                                    </div>
                                    
                                    
                                    
                                    
                                    <div class="modal small hide fade" id="modalAgregarHorario" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true" style="width:800px;margin-left:-400px;margin-top: -250px">
                                        <div class="modal-header">
                                            <button type="button" class="close" data-dismiss="modal" aria-hidden="true">X</button>
                                            <h3 id="myModalLabel">Agregar Horario</h3>
                                        </div>
                                        <div class="modal-body" style="padding:15px;">
                                    
					<fieldset>
                                               
						<legend>Informaci&oacute;n General</legend>
						<table style="width:100%;">
                                                    <tr>
                                                        <td>
                                                            <p>Día :</p>
                                                            <p><input class="input-xlarge" id="appendedInputButton" name="lunes" type="checkbox" checked> Lunes</p>
                                                            <p><input class="input-xlarge" id="appendedInputButton" name="martes" type="checkbox">Martes</p>
                                                            <p><input class="input-xlarge" id="appendedInputButton" name="miercoles" type="checkbox">Miércoles</p>
                                                            <p><input class="input-xlarge" id="appendedInputButton" name="jueves" type="checkbox" checked>Jueves</p>
                                                            <p><input class="input-xlarge" id="appendedInputButton" name="viernes" type="checkbox">Viernes</p>
                                                            <p><input class="input-xlarge" id="appendedInputButton" name="sabado" type="checkbox">Sábado</p>
                                                            <p><input class="input-xlarge" id="appendedInputButton" name="domingo" type="checkbox">Domingo</p>  
                                                        </td>
                                                        <td>
                                                            <table style="height:150px;">
                                                                <tr>
                                                                     <td style="width: 200px;">
                                                                        <label> Fecha de Inicio : </label>
                                                                        <input style="width:130px;" class="input-medium" placeholder="3123" id="appendedInputButton" name="fechaInicio" type="date">
                                                                    </td>
                                                                    <td>
                                                                        <label> Fecha de Fin : </label>
                                                                        <input style="width:130px;" class="input-medium" placeholder="3123" id="appendedInputButton" name="fechaFin" type="date">
                                                                    </td>
                                                                </tr>
                                                                <tr>
                                                                    <td style="width: 200px;">
									<label> Hora de Inicio : </label>
									<select style="width: 80px">
                                                                            <option value="0" selected> 00:00 </option>
                                                                            <?php for($i=1;$i<=12;$i++){ ?>
                                                                            <option value="<?php echo $i; ?>"> 
                                                                                <?php 
                                                                                    if($i < 10){
                                                                                        echo '0'.$i.':00';
                                                                                    }else{
                                                                                        echo $i.':00';
                                                                                    }
                                                                                ?>
                                                                            </option> 
                                                                           <?php } ?> 
                                                                        </select>
                                                                        <select style="width: 60px">
                                                                            <option value ="am_pm" selected> -- </option>
                                                                            <option value ="am"> AM </option>
                                                                            <option value ="pm"> PM </option>
                                                                        </select>
                                                                    </td>
                                                                    <td>
									<label> Hora de Fin : </label>
									<select style="width: 80px">
                                                                            <option value="0" selected> 00:00 </option>
                                                                            <?php for($i=1;$i<=12;$i++){ ?>
                                                                            <option value="<?php echo $i; ?>"> 
                                                                                <?php 
                                                                                    if($i < 10){
                                                                                        echo '0'.$i.':00';
                                                                                    }else{
                                                                                        echo $i.':00';
                                                                                    }
                                                                                ?>
                                                                            </option> 
                                                                           <?php } ?> 
                                                                        </select>
                                                                        <select style="width: 60px">
                                                                            <option value ="am_pm" selected> -- </option>
                                                                            <option value ="am"> AM </option>
                                                                            <option value ="pm"> PM </option>
                                                                        </select>
                                                                    </td>
                                                                </tr>
                                                                <tr>
                                                                    <td style="width: 200px;">
                                                                        <label> Consultorio :</label>
                                                                        <select style="width: 120px">
                                                                            <option value="0" selected> Seleccionar </option>
                                                                            <?php for($i=0;$i<10;$i++){ ?>
                                                                            <option value="<?php echo ($i+1); ?>">
                                                                            <?php echo 'C - 10'.$i; ?>   
                                                                            
                                                                            </option>
                                                                            <?php } ?>
                                                                        </select>
                                                                    </td>
                                                                    <td>&nbsp;</td>
                                                                </tr>
                                                            </table>
                                                        </td>
                                                    </tr>
							
							
						</table>
					</fieldset>
				</div>
				<div class="modal-footer">
					<button class="btn" data-dismiss="modal" aria-hidden="true" onclick="window.location = 'http://localhost/Modulo_Admin/AdminController/ver_doctor_detalle';">Cancelar</button>
					<button class="btn btn-danger" data-dismiss="modal" onclick="window.location = 'http://localhost/Modulo_Admin/AdminController/ver_doctor_detalle';">Agregar</button>
				</div>
                          
                                </div>
                                    
                                    
                                <div class="modal small hide fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
                                    <div class="modal-header">
					<button type="button" class="close" data-dismiss="modal" aria-hidden="true">�</button>
					<h3 id="myModalLabel">Confirmaci&oacute;n</h3>
                                    </div>
                                    <div class="modal-body">
					<p class="error-text"><i class="icon-warning-sign modal-icon"></i>&iquest; Est&aacute; seguro que desea borrar este paciente ?</p>
                                    </div>
                                    <div class="modal-footer">
					<button class="btn" data-dismiss="modal" aria-hidden="true">Cancelar</button>
					<button class="btn btn-danger" data-dismiss="modal">Borrar</button>
                                    </div>
                                </div>    
                                    
                                   
                                </div>
                            </div>
                        
                        
                            <legend>Inasistencias</legend>
		
                            <div class="container-fluid" style="width:50%">
                                <div class="row-fluid">
                                    <div class="well">
                                        <table class="table">
                                            <thead>
                                                    <tr>
                                                        <th> Fecha Inicio </th>
                                                        <th> Fecha Final</th>
                                                        <th> Motivo </th>
                                                    </tr>
                                            </thead>
                                            <tbody>
                                                    <tr>
                                                        <td>01/01/2013</td>
                                                        <td>31/01/2013</td>
                                                        <td>Salud</td>
                                                    </tr>
                                                    
                                                    <tr>
                                                        <td>01/02/2013</td>
                                                        <td>28/02/2013</td>
                                                        <td>Viaje</td>
                                                    </tr>
                                            </tbody>
                                        </table>
                                        <table class="table">
                                            <tr>
                                                <td>
                                                    <div style="float:right;">
                                                    <button class="btn" type="button" onclick="window.location = 'http://localhost/Modulo_Admin/AdminController/ver_doctores';"><i class="icon-arrow-left"></i> Atrás</button>    
                                                    <a href="#modalAgregarInasistencia" role="button" data-toggle="modal">
                                                    <button class="btn" type="button"><i class="icon-plus"></i> Agregar Inasistencia</button>
                                                    </a>
                                                    </div>
                                                </td>
                                            </tr>
                                        </table>
                                    </div>
                                </div>
                            </div>
                            
                            
                            
                            <div class="modal small hide fade" id="modalAgregarInasistencia" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true" style="width:500px; margin-left: -250px;">
                                        <div class="modal-header">
                                            <button type="button" class="close" data-dismiss="modal" aria-hidden="true">X</button>
                                            <h3 id="myModalLabel">Registrar Inasistencia</h3>
                                        </div>
                                        <div class="modal-body">
                                    
					<fieldset>
                                               
						
						<table>
                                                    <tr>
                                                        <td style="width: 200px;">
                                                            <label> Fecha de Inicio : </label>
                                                            <input class="input-medium" id="appendedInputButton" name="fechaInicio" type="date">
                                                        </td>
                                                        <td>
                                                            <label> Fecha de Fin : </label>
                                                            <input class="input-medium" id="appendedInputButton" name="fechaFin" type="date">
                                                        </td>
                                                        <td></td>
                                                    </tr>
						</table>
					</fieldset>
				</div>
				<div class="modal-footer">
					<button class="btn" data-dismiss="modal" aria-hidden="true" onclick="window.location = 'http://localhost/Modulo_Admin/AdminController/ver_doctor_detalle';">Cancelar</button>
					<button class="btn btn-danger" data-dismiss="modal" onclick="window.location = 'http://localhost/Modulo_Admin/AdminController/ver_doctor_detalle';">Registrar</button>
				</div>
                          
                                </div>
                            
                            
                            
                            
                            
                            
                        
               </fieldset> 
    </div>
      
  

    <script src="<?php echo base_url();?>js/bootstrap/js/bootstrap.js"></script>
    <script type="text/javascript">
        $("[rel=tooltip]").tooltip();
        $(function() {
            $('.demo-schedule-click').click(function(){return false;});
            $( "#birthdate" ).datepicker();
        });
    </script>
    
  </body>
</html>